package cn.anc.aonicardv.manager;

import android.app.Activity;
import android.net.ConnectivityManager;
import android.os.Build;

import cn.anc.aonicardv.Constant;
import cn.anc.aonicardv.MyApplication;
import cn.anc.aonicardv.R;
import cn.anc.aonicardv.bean.FirmwareBean;
import cn.anc.aonicardv.bean.ResponseResultBean;
import cn.anc.aonicardv.net.ApiManager;
import cn.anc.aonicardv.net.NetRequestClient;
import cn.anc.aonicardv.net.ProgressSubscriber;
import cn.anc.aonicardv.param.ParamManager;
import cn.anc.aonicardv.util.DateUtils;
import cn.anc.aonicardv.util.LogUtil;
import cn.anc.aonicardv.util.NetUtils;
import cn.anc.aonicardv.widget.FirmwareUpdateDialog;
import cn.anc.httpcontrolutil.SocketUtils;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * function :
 * </p>
 */
public class CheckUpdatesVersionManager {
    private Activity context = null;
    private NetRequestClient netRequestClient;
    private ApiManager apiManager;
    private String mModel;
    private String mTime;
    private  static  String TAG = "llc_CheckUpdatesVersionManager";
    public CheckUpdatesVersionManager(Activity context) {
        this.context = context;
    }
    public void checkUpdate(String model, String buildTime) {
        if (null==model||null==buildTime){
            LogUtil.e(TAG,"-----------checkUpdate---model---buildTime-:不能为空");
            return;
        }
        mModel = model;
        mTime = buildTime;

    }


    private FirmwareUpdateDialog firmwareUpdateDialog;

    public void dismissUpdateDialog() {
            if (null!=firmwareUpdateDialog){
                if (firmwareUpdateDialog.isShowing()){
                    firmwareUpdateDialog.dismiss();
                }
            }
    }
    private int mDialogId = 10000;


}
